package com.library.common.enums;

import lombok.Getter;

/**
 * @ClassName: BookShelfStatus
 * @Description: 是否续借
 * @Author: hb
 * @Date: 2024/9/27
 */
@Getter
public enum BooksRuleRenew {
    /**
     * 是
     */
    NORMAL("0", "是"),

    /**
     * 否
     */
    STOP("1", "否");



    private final String code;
    private final String info;

    BooksRuleRenew(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public boolean equals(String source) {
        return this.getCode().equals(source);
    }


}
